package com.briup.ptt.util;


/**
 * @author 杰瑞
 * @date 2025/8/14
 */
public class Result<T> {

    public Result(){

    }

    public Result(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public Result(ResultCodeEnum resultCodeEnum,T date){
        this(resultCodeEnum.getCode(),resultCodeEnum.getMsg());
        this.date = date;
    }

    public Result(ResultCodeEnum rc) {
        this(rc,null);
    }


    private Integer code;
    private String msg;
    private T date;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getDate() {
        return date;
    }

    public void setDate(T date) {
        this.date = date;
    }
}
